package cn.tudu.boot22.controller;

import cn.tudu.boot22.entity.Hero;
import cn.tudu.boot22.mapper.HeroMapper1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/*
@Controller
public class HeroController1 {
    @Autowired
    HeroMapper1 mapper1;
    @RequestMapping("/add")
    @ResponseBody
    public String add(Hero hero){
        mapper1.insert(hero);
        return "注册成功 ";
    }
}
*/
